<template>
  <div class="app">
    <Preson v-if="isShow"/>
  </div>
</template>

<script lang="ts" setup name="App">
  import Preson from './components/Preson.vue'
  import {ref,onMounted} from 'vue'

  let isShow = ref(true)

  //挂载完毕
  onMounted(()=>{
    console.log('父---挂载完毕')
  })

</script>

<style scoped>
</style>